Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIP-458: Enable GOLD gauges on Arbitrum #571

Merged
merged 8 commits into from
Oct 21, 2023

Conversation

gosuto-inzasheru
Copy link
Member

payload for proposed bip in https://forum.balancer.fi/t/bip-xxx-enable-50gold-25usdc-25wsteth-25gold-25bal-25aura-25wsteth-arbitrum/5262

this does not include the 8%/2% split for the ARB rewards, which is not something that is multisig controlled as i understand

@Xeonus Xeonus changed the title BIP-XXX: Enable GOLD gauges on Arbitrum BIP-458: Enable GOLD gauges on Arbitrum Oct 18, 2023
Copy link
Collaborator

@Zen-Maxi Zen-Maxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed over this, can see comments in my last push. Create functions for pools and gauges are done outside of payloads because anyone can do them. The only portion you needed was correct, the grant of permissions, setRelativeWeightCap, and revoke. A second json was needed to add new gauges to the controller, via the LM multisig using gaugeAdderV4. We can discuss Friday or this weekend when you have time.

@github-actions
Copy link
Contributor

BIP validation results for file BIPs/2023-W42/BIP-458B.json:
Commit: def1e5f97a622afe816434d8d9b9ce863b38f087

+-------------------------------+--------+
|           Validator           | Result |
+-------------------------------+--------+
|     validate_contains_msig    |   OK   |
| validate_msig_in_address_book |   OK   |
|    validate_chain_specified   |   OK   |
|     validate_file_has_bip     |   OK   |
|  validate_path_has_weekly_dir |   OK   |
+-------------------------------+--------+

BIP validation results for file BIPs/2023-W43/BIP-458A.json:
Commit: def1e5f97a622afe816434d8d9b9ce863b38f087

+-------------------------------+--------+
|           Validator           | Result |
+-------------------------------+--------+
|     validate_contains_msig    |   OK   |
| validate_msig_in_address_book |   OK   |
|    validate_chain_specified   |   OK   |
|     validate_file_has_bip     |   OK   |
|  validate_path_has_weekly_dir |   OK   |
+-------------------------------+--------+

@github-actions
Copy link
Contributor

File name: BIPs/2023-W42/BIP-458B.json
COMMIT: def1e5f97a622afe816434d8d9b9ce863b38f087
CHAIN(S): arbitrum

+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+
| function              | pool_id_and_address                                                 | symbol_and_info         | gauge_address_and_info                     | tokens                                                  | rate_providers                                  | bip     |   tx_index |
+=======================+=====================================================================+=========================+============================================+=========================================================+=================================================+=========+============+
| GaugeAdderV4/addGauge | 0x49b2de7d214070893c038299a57bac5acb8b8a340001000000000000000004be  | GOLD-BAL-AURA-wstETH    | 0x86Cf58bD7A64f2304227d1a490660D2954dB4a91 | "BAL(0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8)",      | "0x0000000000000000000000000000000000000000",   | BIP-458 |          0 |
|                       | pool_address: 0x49b2De7d214070893c038299a57BaC5ACb8B8A34            | fee: 0.5, a-factor: N/A |  Style: L0 sidechain, cap: 2.0%            |   "AURA(0x1509706a6c66CA549ff0cB464de88231DDBe213B)",   |   "0x0000000000000000000000000000000000000000", |         |            |
|                       |                                                                     |                         |                                            |   "wstETH(0x5979D7b546E38E414F7E9822514be443A4800529)", |   "0xf7c5c26B574063e7b098ed74fAd6779e65E3F836", |         |            |
|                       |                                                                     |                         |                                            |   "GOLD(0x8b5e4C9a188b1A187f2D1E80b1c2fB17fA2922e1)"    |   "0x0000000000000000000000000000000000000000"  |         |            |
+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+
| GaugeAdderV4/addGauge | 0x2e8ea681fd59c9dc5f32b29de31f782724ef4dcb0001000000000000000004bc  | 50GOLD-25USDC-25WSTETH  | 0xA8d4b31225BD6FAF1363DB5A0AB6c016894985d1 | "wstETH(0x5979D7b546E38E414F7E9822514be443A4800529)",   | "0xf7c5c26B574063e7b098ed74fAd6779e65E3F836",   | BIP-458 |          1 |
|                       | pool_address: 0x2e8Ea681FD59c9dc5f32B29de31F782724EF4DcB            | fee: 0.5, a-factor: N/A |  Style: L0 sidechain, cap: 6.0%            |   "GOLD(0x8b5e4C9a188b1A187f2D1E80b1c2fB17fA2922e1)",   |   "0x0000000000000000000000000000000000000000", |         |            |
|                       |                                                                     |                         |                                            |   "USDC(0xaf88d065e77c8cC2239327C5EDb3A432268e5831)"    |   "0x0000000000000000000000000000000000000000"  |         |            |
+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+

File name: BIPs/2023-W43/BIP-458A.json
COMMIT: def1e5f97a622afe816434d8d9b9ce863b38f087
CHAIN(S): mainnet

+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+
| function              | caller_name   | caller_address                             | fx_paths                                                                                      | action_ids                                                         | bip     |   tx_index |
+=======================+===============+============================================+===============================================================================================+====================================================================+=========+============+
| Authorizer/grantRole  | multisigs/dao | 0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f | 20230526-zkevm-root-gauge-factory/PolygonZkEVMRootGauge/setRelativeWeightCap(uint256)         | 0xae60dce27f51ce5815357b9f6b40f200557867f8222262a1646c005d09b7dfba | BIP-458 |          0 |
|                       |               |                                            | 20220823-polygon-root-gauge-factory-v2/PolygonRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
|                       |               |                                            | 20230215-single-recipient-gauge-factory-v2/SingleRecipientGauge/setRelativeWeightCap(uint256) |                                                                    |         |            |
|                       |               |                                            | 20230529-avalanche-root-gauge-factory/AvalancheRootGauge/setRelativeWeightCap(uint256)        |                                                                    |         |            |
|                       |               |                                            | 20220823-optimism-root-gauge-factory-v2/OptimismRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20230811-avalanche-root-gauge-factory-v2/AvalancheRootGauge/setRelativeWeightCap(uint256)     |                                                                    |         |            |
|                       |               |                                            | 20230911-base-root-gauge-factory/BaseRootGauge/setRelativeWeightCap(uint256)                  |                                                                    |         |            |
|                       |               |                                            | 20220822-mainnet-gauge-factory-v2/LiquidityGaugeV5/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20230217-gnosis-root-gauge-factory/GnosisRootGauge/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20220823-arbitrum-root-gauge-factory-v2/ArbitrumRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+
| Authorizer/revokeRole | multisigs/dao | 0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f | 20230526-zkevm-root-gauge-factory/PolygonZkEVMRootGauge/setRelativeWeightCap(uint256)         | 0xae60dce27f51ce5815357b9f6b40f200557867f8222262a1646c005d09b7dfba | BIP-458 |          2 |
|                       |               |                                            | 20220823-polygon-root-gauge-factory-v2/PolygonRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
|                       |               |                                            | 20230215-single-recipient-gauge-factory-v2/SingleRecipientGauge/setRelativeWeightCap(uint256) |                                                                    |         |            |
|                       |               |                                            | 20230529-avalanche-root-gauge-factory/AvalancheRootGauge/setRelativeWeightCap(uint256)        |                                                                    |         |            |
|                       |               |                                            | 20220823-optimism-root-gauge-factory-v2/OptimismRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20230811-avalanche-root-gauge-factory-v2/AvalancheRootGauge/setRelativeWeightCap(uint256)     |                                                                    |         |            |
|                       |               |                                            | 20230911-base-root-gauge-factory/BaseRootGauge/setRelativeWeightCap(uint256)                  |                                                                    |         |            |
|                       |               |                                            | 20220822-mainnet-gauge-factory-v2/LiquidityGaugeV5/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20230217-gnosis-root-gauge-factory/GnosisRootGauge/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20220823-arbitrum-root-gauge-factory-v2/ArbitrumRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+

File name: BIPs/2023-W43/BIP-458A.json
COMMIT: def1e5f97a622afe816434d8d9b9ce863b38f087
CHAIN(S): 1

+---------------+-----------------------------------------------------------------------------------------------------------------+---------+----------------------------------------------------------------------------------------+--------------+------------+
| fx_name       | to                                                                                                              |   value | inputs                                                                                 | bip_number   | tx_index   |
+===============+=================================================================================================================+=========+========================================================================================+==============+============+
| performAction | 0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA (20221124-authorizer-adaptor-entrypoint/AuthorizerAdaptorEntrypoint) |       0 | {                                                                                      | BIP-458      | N/A        |
|               |                                                                                                                 |         |   "target": [                                                                          |              |            |
|               |                                                                                                                 |         |     "0xed0bb13496ce24EFFF8f9734A9707D092d4Be10c (N/A) "                                |              |            |
|               |                                                                                                                 |         |   ],                                                                                   |              |            |
|               |                                                                                                                 |         |   "data": "0x10d3eb0400000000000000000000000000000000000000000000000000b1a2bc2ec50000" |              |            |
|               |                                                                                                                 |         | }                                                                                      |              |            |
+---------------+-----------------------------------------------------------------------------------------------------------------+---------+----------------------------------------------------------------------------------------+--------------+------------+

@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@BalancerMaxis BalancerMaxis deleted a comment from github-actions bot Oct 21, 2023
@Tritium-VLK
Copy link
Member

Checked: https://arbiscan.io/address/0xf7c5c26B574063e7b098ed74fAd6779e65E3F836#readContract is a CL rate provider pointed at the cl wstETH/ETH exchange feed.

Tritium-VLK
Tritium-VLK previously approved these changes Oct 21, 2023
gosuto-inzasheru and others added 7 commits October 22, 2023 01:21
- gauge adds missing (needs gauge adder v4)
- this payload still needs to be modified
458A - DAO Multisig -reduced to only include the granting of setRelativeWeightCap role, setting Gold pool on Base to 5% cap, and revoking of role. Had to remove create functions, those are permisionless and not needed. Simulation: https://dashboard.tenderly.co/public/safe/safe-apps/simulator/0a864b21-f3b3-4a5a-bff1-6e4c430ef21e

458B - Uses the Maxi LM Multisig to add new gauges created to meet the cap requests. Simulation: https://dashboard.tenderly.co/public/safe/safe-apps/simulator/0a774ec0-f96f-4b6e-be87-0696d8d00150
@Tritium-VLK
Copy link
Member

Reworked the branch, recommited the move of the new branch and force-pushed to clean up touching file from another BIP.

@github-actions
Copy link
Contributor

BIP validation results for file BIPs/2023-W42/BIP-458B.json:
Commit: a83797d8b5c2921eb1e63fd8d8ecf248f8f7bfad

+-------------------------------+--------+
|           Validator           | Result |
+-------------------------------+--------+
|     validate_contains_msig    |   OK   |
| validate_msig_in_address_book |   OK   |
|    validate_chain_specified   |   OK   |
|     validate_file_has_bip     |   OK   |
|  validate_path_has_weekly_dir |   OK   |
+-------------------------------+--------+

BIP validation results for file BIPs/2023-W43/BIP-458A.json:
Commit: a83797d8b5c2921eb1e63fd8d8ecf248f8f7bfad

+-------------------------------+--------+
|           Validator           | Result |
+-------------------------------+--------+
|     validate_contains_msig    |   OK   |
| validate_msig_in_address_book |   OK   |
|    validate_chain_specified   |   OK   |
|     validate_file_has_bip     |   OK   |
|  validate_path_has_weekly_dir |   OK   |
+-------------------------------+--------+

@github-actions
Copy link
Contributor

File name: BIPs/2023-W42/BIP-458B.json
COMMIT: a83797d8b5c2921eb1e63fd8d8ecf248f8f7bfad
CHAIN(S): arbitrum

+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+
| function              | pool_id_and_address                                                 | symbol_and_info         | gauge_address_and_info                     | tokens                                                  | rate_providers                                  | bip     |   tx_index |
+=======================+=====================================================================+=========================+============================================+=========================================================+=================================================+=========+============+
| GaugeAdderV4/addGauge | 0x49b2de7d214070893c038299a57bac5acb8b8a340001000000000000000004be  | GOLD-BAL-AURA-wstETH    | 0x86Cf58bD7A64f2304227d1a490660D2954dB4a91 | "BAL(0x040d1EdC9569d4Bab2D15287Dc5A4F10F56a56B8)",      | "0x0000000000000000000000000000000000000000",   | BIP-458 |          0 |
|                       | pool_address: 0x49b2De7d214070893c038299a57BaC5ACb8B8A34            | fee: 0.5, a-factor: N/A |  Style: L0 sidechain, cap: 2.0%            |   "AURA(0x1509706a6c66CA549ff0cB464de88231DDBe213B)",   |   "0x0000000000000000000000000000000000000000", |         |            |
|                       |                                                                     |                         |                                            |   "wstETH(0x5979D7b546E38E414F7E9822514be443A4800529)", |   "0xf7c5c26B574063e7b098ed74fAd6779e65E3F836", |         |            |
|                       |                                                                     |                         |                                            |   "GOLD(0x8b5e4C9a188b1A187f2D1E80b1c2fB17fA2922e1)"    |   "0x0000000000000000000000000000000000000000"  |         |            |
+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+
| GaugeAdderV4/addGauge | 0x2e8ea681fd59c9dc5f32b29de31f782724ef4dcb0001000000000000000004bc  | 50GOLD-25USDC-25WSTETH  | 0xA8d4b31225BD6FAF1363DB5A0AB6c016894985d1 | "wstETH(0x5979D7b546E38E414F7E9822514be443A4800529)",   | "0xf7c5c26B574063e7b098ed74fAd6779e65E3F836",   | BIP-458 |          1 |
|                       | pool_address: 0x2e8Ea681FD59c9dc5f32B29de31F782724EF4DcB            | fee: 0.5, a-factor: N/A |  Style: L0 sidechain, cap: 6.0%            |   "GOLD(0x8b5e4C9a188b1A187f2D1E80b1c2fB17fA2922e1)",   |   "0x0000000000000000000000000000000000000000", |         |            |
|                       |                                                                     |                         |                                            |   "USDC(0xaf88d065e77c8cC2239327C5EDb3A432268e5831)"    |   "0x0000000000000000000000000000000000000000"  |         |            |
+-----------------------+---------------------------------------------------------------------+-------------------------+--------------------------------------------+---------------------------------------------------------+-------------------------------------------------+---------+------------+

File name: BIPs/2023-W43/BIP-458A.json
COMMIT: a83797d8b5c2921eb1e63fd8d8ecf248f8f7bfad
CHAIN(S): mainnet

+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+
| function              | caller_name   | caller_address                             | fx_paths                                                                                      | action_ids                                                         | bip     |   tx_index |
+=======================+===============+============================================+===============================================================================================+====================================================================+=========+============+
| Authorizer/grantRole  | multisigs/dao | 0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f | 20230217-gnosis-root-gauge-factory/GnosisRootGauge/setRelativeWeightCap(uint256)              | 0xae60dce27f51ce5815357b9f6b40f200557867f8222262a1646c005d09b7dfba | BIP-458 |          0 |
|                       |               |                                            | 20220823-optimism-root-gauge-factory-v2/OptimismRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20220822-mainnet-gauge-factory-v2/LiquidityGaugeV5/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20230911-base-root-gauge-factory/BaseRootGauge/setRelativeWeightCap(uint256)                  |                                                                    |         |            |
|                       |               |                                            | 20220823-arbitrum-root-gauge-factory-v2/ArbitrumRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20220823-polygon-root-gauge-factory-v2/PolygonRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
|                       |               |                                            | 20230811-avalanche-root-gauge-factory-v2/AvalancheRootGauge/setRelativeWeightCap(uint256)     |                                                                    |         |            |
|                       |               |                                            | 20230215-single-recipient-gauge-factory-v2/SingleRecipientGauge/setRelativeWeightCap(uint256) |                                                                    |         |            |
|                       |               |                                            | 20230529-avalanche-root-gauge-factory/AvalancheRootGauge/setRelativeWeightCap(uint256)        |                                                                    |         |            |
|                       |               |                                            | 20230526-zkevm-root-gauge-factory/PolygonZkEVMRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+
| Authorizer/revokeRole | multisigs/dao | 0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f | 20230217-gnosis-root-gauge-factory/GnosisRootGauge/setRelativeWeightCap(uint256)              | 0xae60dce27f51ce5815357b9f6b40f200557867f8222262a1646c005d09b7dfba | BIP-458 |          2 |
|                       |               |                                            | 20220823-optimism-root-gauge-factory-v2/OptimismRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20220822-mainnet-gauge-factory-v2/LiquidityGaugeV5/setRelativeWeightCap(uint256)              |                                                                    |         |            |
|                       |               |                                            | 20230911-base-root-gauge-factory/BaseRootGauge/setRelativeWeightCap(uint256)                  |                                                                    |         |            |
|                       |               |                                            | 20220823-arbitrum-root-gauge-factory-v2/ArbitrumRootGauge/setRelativeWeightCap(uint256)       |                                                                    |         |            |
|                       |               |                                            | 20220823-polygon-root-gauge-factory-v2/PolygonRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
|                       |               |                                            | 20230811-avalanche-root-gauge-factory-v2/AvalancheRootGauge/setRelativeWeightCap(uint256)     |                                                                    |         |            |
|                       |               |                                            | 20230215-single-recipient-gauge-factory-v2/SingleRecipientGauge/setRelativeWeightCap(uint256) |                                                                    |         |            |
|                       |               |                                            | 20230529-avalanche-root-gauge-factory/AvalancheRootGauge/setRelativeWeightCap(uint256)        |                                                                    |         |            |
|                       |               |                                            | 20230526-zkevm-root-gauge-factory/PolygonZkEVMRootGauge/setRelativeWeightCap(uint256)         |                                                                    |         |            |
+-----------------------+---------------+--------------------------------------------+-----------------------------------------------------------------------------------------------+--------------------------------------------------------------------+---------+------------+

File name: BIPs/2023-W43/BIP-458A.json
COMMIT: a83797d8b5c2921eb1e63fd8d8ecf248f8f7bfad
CHAIN(S): 1

+---------------+-----------------------------------------------------------------------------------------------------------------+---------+----------------------------------------------------------------------------------------+--------------+------------+
| fx_name       | to                                                                                                              |   value | inputs                                                                                 | bip_number   | tx_index   |
+===============+=================================================================================================================+=========+========================================================================================+==============+============+
| performAction | 0xf5dECDB1f3d1ee384908Fbe16D2F0348AE43a9eA (20221124-authorizer-adaptor-entrypoint/AuthorizerAdaptorEntrypoint) |       0 | {                                                                                      | BIP-458      | N/A        |
|               |                                                                                                                 |         |   "target": [                                                                          |              |            |
|               |                                                                                                                 |         |     "0xed0bb13496ce24EFFF8f9734A9707D092d4Be10c (N/A) "                                |              |            |
|               |                                                                                                                 |         |   ],                                                                                   |              |            |
|               |                                                                                                                 |         |   "data": "0x10d3eb0400000000000000000000000000000000000000000000000000b1a2bc2ec50000" |              |            |
|               |                                                                                                                 |         | }                                                                                      |              |            |
+---------------+-----------------------------------------------------------------------------------------------------------------+---------+----------------------------------------------------------------------------------------+--------------+------------+

@Tritium-VLK Tritium-VLK merged commit d205b4b into main Oct 21, 2023
@Tritium-VLK Tritium-VLK deleted the bip-xxx-enable_gold_arbitrum branch November 27, 2023 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants